package com.bd.scm.dao.mapper.overTime;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bd.scm.domain.dto.overTime.BdTempScheduleOtDataDto;
import com.bd.scm.domain.dto.overTime.BdTempScheduleOtFailDto;
import com.bd.scm.domain.dto.overTime.BdTempScheduleOtParamsDto;
import com.bd.scm.domain.dto.standardReports.BdKqOtSettleListDto;
import com.bd.scm.domain.models.overTime.BdTempScheduleOt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 排班加班临时表 Mapper 接口
 * </p>
 *
 * @author Mason
 * @since 2020-07-20
 */
public interface BdTempScheduleOtMapper extends BaseMapper<BdTempScheduleOt> {
    /**
     * 获取加班计算报表数据.
     *
     * @param page
     * @param bdTempScheduleOtParamsDto
     * @return
     */
    IPage<BdTempScheduleOtDataDto> getList(Page<BdTempScheduleOtDataDto> page,
                                       @Param("bdTempScheduleOtParamsDto") BdTempScheduleOtParamsDto bdTempScheduleOtParamsDto);

    /**
     * 生成数据.
     *
     * @param userSerial
     */
    List<BdTempScheduleOtFailDto> doCreateData(@Param("userSerial") String userSerial);
}
